﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace J03
{
    public class AuthCarInfor
    {
        //自动生成FID
        public string FID;
        //过磅编号
        public string WeighNumber;
        //订货单的FID
        public string OrderFID;
        //授权编号
        public string AuthNumber;
        //车牌号
        public string CarNumber;
        //计划预装
        public string PreviousPlan;
        //下单时间
        public string TicketTime;
        //产品
        public string ProductName;
        //产品FID
        public string ProductFID;
        //单价
        public string Price;
        public string listOrderPro;
        public string DataBaseName;
        //账套代码号
        public string DbNum;
        //更新标志
        public string TakePass;
        //页的总数
        public int TotalPages;
        //剩余金额
        public string SurplusMoney;
        //是否袋装
        public string IsBag;
        //客户
        public string OrgName;

    }

    public class FunctionParameter
    {
        //订单FID
        public string OrderFID = "";
        //车辆FID
        public string CarFID = "";
        //发货授权FID
        public string AuthCarFID = "";
        //开始时间
        public string StartTime = "";
        //结束时间
        public string EndTime = "";
        //第几页
        public int Page = 0;
        //一页容量
        public int PageSize = 0;
        //车牌号
        public string CarNum = "";
        //预装量
        public string PreviousWeight = "";
        //产品价格
        public string ProductPrice = "";
        //产品名称
        public string ProductName = "";
        //产品FID
        public string ProductFID = "";
        //唯一标识
        public string Stamp = "";
        public string Statues = "";
        public string SalesAuthCarInfo = "";
        //授权单下补录产品列表
        public string listOrderPro="";
        public string listOrderFID = "";
        //称重状态
        public int CalStatus;

    }

    public class OrderPro
    {
        //产品价格
        public String ProductPrice;
        //订单FID
        public String OrderFID ;
        //产品FID
        public String ProductFID ;
        //余量
        public string Allowance;
        public string UsedNumber;
        public String CurrentBalance;
        //更新标志
        public string TakePass;
    }

    public class ProductOrder
    {
        //单价
        public string Price;
        //剩余金额
        public string SurplusMoney;
        //扣除数量
        public string DeductNumber;
        //花费金额
        public string ConsumeMoney;
        //订单编号
        public string OrderBillno;
    }

    public class SalesCarInfor
    {
        //销售计量单FID
        public string FID;
        //订货单的FID
        public string OrderFID;
        //过磅编号
        public string WeighNumber;
        //车牌号
        public string CarNumber;
        //计划预装
        public string PreviousPlan;
        //进场重量
        public string InWeight;
        //出厂重量
        public string OutWeight;
        //实际净重
        public string FactNetWeight;
        //出库数量
        public string OutStorage;
        //称量状态*-1=以发货授权，0=开票,1=已开票,2=已进厂计量,3=计量完成
        public string WeighStatues;
        //过磅类型*0=正常过磅,1=退货,2=空车出厂
        public string WeighType;
        //开票时间
        public string TicketTime;
        //进厂时间
        public string InTime;
        //出厂时间
        public string OutTime;
        //磁卡
        public string CardNum;
        //发货授权编号
        public string OrderNumber;
        //客户
        public string ClientName;
        //产品
        public string ProductName;
        //开票人员
        public string BillingMan;
        //进厂司磅
        public string InSiBang;
        //出厂司磅
        public string OutSiBang;
        //库存
        public string Storage;
        //签发员
        public string SignMan;
        //销售车辆
        public string SalesCar;
        //生产线
        public string ProduceNumber;
        //单价
        public string Price;
        //剩余金额
        public string SurplusMoney;
        //花费金额
        public string ConsumeMoney;
        //盈亏
        public string ProfitAndLoss;

        public List<ProductOrder> listProductOrderInfor = new List<ProductOrder>();
        //页的总数
        public int TotalPages;
    }

    public class SalesOrderInfor
    {
        //销售订单FID
        public string FID;
        //订单编号
        public string FBillNo;
        //客户
        public string ClientName;
        //产品FID
        public string ProFID;
        //产品
        public string ProductName;
        //是否袋装
        public string IsBag;
        //每袋重量
        public string BagWeight;
        //数量
        public string Amount;
        //含税单价
        public string TaxPrice;
        //含税运价
        public string TaxTransatePrice;
        //运输金额
        public string TransateMoney;
        //含税金额
        public string TaxMoney;
        //总金额
        public string TotalMoney;
        //下单日期
        public string OrderDate;
        //已用数量
        public string UsedNumber;
        //已用金额
        public string UsedMoney;
        //运输单价
        public string TransatePrice;
        //运费税率
        public string TaxTransateRate;
        //单价
        public string Price;
        //税率
        public string TaxRate;
        //袋装标准
        public string BagStandard;
        //计量方案
        public string MeasurementPlan;
        //余量
        public string Allowance;
        //业务员
        public string SalesMan;
        //其它单价
        public string OtherPrice;
        //其它金额
        public string OtherMoney;
        //销售方式
        public string SalesWay;
        //结算方式
        public string SettleWay;
        //销售地区
        public string SalesArea;
        //销售市场
        public string SalesMarket;
        //交货方式
        public string DeliveryWay;
        //市场类型
        public string MarketType;

        //订单下的车辆信息
        public List<SalesCarInfor> listSalesCarInfor = new List<SalesCarInfor>();

        //页的总数
        public int TotalPages;
    }

    public class AuthResult
    {
        //是否成功
        public string IsSuccess;
        //返回AuthFID
        public string AuthFID;
    }
}
